<?php

class Card{
	public $cardFace; 
	public $suit;
	
	function __construct($cardFace = null,$suit = null){
		if(empty($cardFace)){
			$this->cardFace = 'A';
		}else{
			$this->cardFace = $cardFace;
		}
		
		if(empty($suit)){
			$this->suit = 'C';
		}else{
			$this->suit = $suit;
		}
	}
	
	function printCard(){
		return $this->cardFace . $this->suit;
	}
	
	// Getter e setter
	function setCardFace($cardFace) {
		$this->cardface = $cardFace;
	}
	
	function getCardFace(){
		return $this->cardFace;
	}
		
	function setSuit($suit){
		$this->suit=$suit;
	}
	
	function getSuit(){
		return $this->suit;
	}
	
	
}
?>